package lab03.test02;

import java.io.File;

/**
 * Created by dell on 2017/11/16.
 */
public class test {
    public static void main(String[] args) {
        File file = new File("C:\\");
        for (File f : file.listFiles()) {
            if (f.isFile()) {
                System.out.println("文件：" + f.getName());
                if (f.isDirectory()) {
                    System.out.println("目录：" + f.getName());
                }
                System.out.println(f.getName());
            }
        }
    }
}
